package com.wwj.study.observer.keyboard;

import com.wwj.study.observer.core.EventLisenter;

/**
 * @Author: wuweijun
 * @Date: 2018/11/20 16:46
 */
public class Keyboard extends EventLisenter implements IKeyboard{

    @Override
    public void onKeyboard(){
        System.out.println("按下键盘");
        trigger(KeyBoardEnumType.on);
    }

    @Override
    public void upKeyboard(){
        System.out.println("弹出键盘");
        trigger(KeyBoardEnumType.up);
    }
}
